using System;
using System.Web;
using StructureMap;

namespace CxRomos.Core.Services.Implementation {
    [Pluggable("Default")]
    public class Redirector : IRedirector {
        public void GoToHomePage() {
            Redirect("~/Default.aspx");
        }

        public void GoToErrorPage() {
            Redirect("~/Error.aspx");
        }

        public void GoToAccountLoginPage() {
            Redirect("~/Account/Login.aspx");
        }

        public void GoToAccountRecoveryPasswordPage() {
            Redirect("~/Account/RecoverPassword.aspx");
        }

        public void GoToAccountRegisterPage() {
            Redirect("~/Account/Register.aspx");
        }

        public void GoToAccountAccessDenied() {
            Redirect("~/Account/AccessDenied.aspx");
        }

        public void GoToAccountEditAccountPage() {
            Redirect("~/Account/EditAccount.aspx");
        }

        public void Redirect(string path) {
            HttpContext.Current.Response.Redirect(path);
        }

    }
}